home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / win_u_z / wt_jan92.zip / LEVARO.ZIP / STATDLL.C < prev    next >
Text File  |  1991-09-27  |  986b  |  39 lines

  1. /*
  2.  * STATDLL.C -- Custom control dynamic link library
  3.  */
  4.  
  5. #include <windows.h>
  6. #include "newstat.h"
  7. #include "statdll.h"
  8.  
  9. int FAR PASCAL LibMain( HANDLE hInstance,WORD wDataSegment,
  10.               WORD wHeapSize,LPSTR lpszCmdLine)
  11. {
  12.     WNDCLASS wndclass ;
  13.  
  14.     if (wHeapSize != 0)
  15.        UnlockData(0);
  16.  
  17.     /* The only requirement is to register the NewStat class           */
  18.  
  19.     wndclass.style       = CS_HREDRAW | CS_VREDRAW | CS_GLOBALCLASS;
  20.     wndclass.lpfnWndProc   = StaticWndFn;
  21.     wndclass.cbClsExtra    = 0;
  22.     wndclass.cbWndExtra    = ST_WINEXTRA;
  23.     wndclass.hInstance       = hInstance;
  24.     wndclass.hIcon       = NULL;
  25.     wndclass.hCursor       = LoadCursor (NULL,IDC_ARROW);
  26.     wndclass.hbrBackground = NULL;
  27.     wndclass.lpszMenuName  = NULL;
  28.     wndclass.lpszClassName = "NewStat";
  29.  
  30.     RegisterClass (&wndclass);
  31.  
  32.     return 1;    /* Indicate that the DLL was initialized successfully. */
  33. }
  34.  
  35. int FAR PASCAL WEP(int bSystemExit)
  36. {
  37.     return 1;
  38. }
  39.